package com.flyoil.petromp.entity.entity_service;

/**
 * Created by songzhiyin on 2017/11/2.
 * 物资和服务的实体类
 */

public class ProjectServiceEntity {
    private int id;
    private String name;
    private String type;
    private String imgUrl;

    public ProjectServiceEntity(String name, String type) {
        this.name = name;
        this.type = type;
    }

    public ProjectServiceEntity() {
    }

    public ProjectServiceEntity(String name, String type, String imgUrl) {
        this.name = name;
        this.type = type;
        this.imgUrl = imgUrl;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getImgUrl() {
        if (imgUrl == null) {
            imgUrl = "";
        }
        return imgUrl;
    }

    public void setImgUrl(String imgUrl) {
        this.imgUrl = imgUrl;
    }
}
